import api from '@/api'
import { timeTransfer } from '@/utils/format.js'

const other = {
	state: {
		msgData:{},
		devicesList:[],
	},
	mutations: {
		SAVE_MSG_DATA(state, data) {
			state.msgData = data;
		},
		SAVE_DEVICES_LIST(state, data) {
			state.devicesList = data;
		}
	},
	actions: {
		save_msgData({ commit }, data) {
			commit('SAVE_MSG_DATA', data)
		},
		save_devicesList({ commit }, data) {
			commit('SAVE_DEVICES_LIST', data)
		},
	}
}

export default other;